package com.dfrz.bookstore.entry;


import java.sql.Date;

/**
 * 类功能描述:
 *   订单项表
 * @Author keyan
 * @Date 2021/5/18 19:14
 */
public class OrderItem {
    private int id;
    private int user_id;
    private int book_id;
    private int order_id;
    private double price_sum;

    private Date create_time;   //创建日期
    private Date update_time;   //更新日期

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public double getPrice_sum() {
        return price_sum;
    }

    public void setPrice_sum(double price_sum) {
        this.price_sum = price_sum;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", book_id=" + book_id +
                ", order_id=" + order_id +
                ", price_sum=" + price_sum +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
